RoomListItem = BaseListViewItem:Extend()

function RoomListItem:New(...)
    local o = RoomListItem.super.New(self, ...)
    o:Init()
    return o
end

function RoomListItem:Init()
    self.label_name , self.label_count = GetNode(self.transform,{"label_name","label_count",},"Text")
    self.btn_join = GetNode(self.transform,{"btn_join"},"GameObject")
    self:InitEvent()
end

function RoomListItem:InitEvent()
    local click_func = function (target)
        if target == self.btn_join then
			Debug.Log("btn_join 111")
		end
    end
    AddClick(self.btn_join,click_func)
end

function RoomListItem:SetData(data)
    -- Debug.LogDump(data)
    self.label_name.text = data.name
end